package app.dev.ems.web.wicket.panel.menu.vertical.administration.user;

import java.io.Serializable;

import org.apache.wicket.Component;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.html.link.Link;

import app.dev.ems.web.element.NavigationStatus;
import app.dev.ems.web.wicket.factory.MenuContainerFactory;
import app.dev.ems.web.wicket.factory.NavigationLinkFactory;
import app.dev.ems.web.wicket.panel.menu.vertical.administration.BaseAdministrationMenuPanel;

public class UserAdministrationMenuPanel extends BaseAdministrationMenuPanel {

	private static final long serialVersionUID = -829582515240107483L;

	public UserAdministrationMenuPanel(String id) {
		super(id);
		
		WebMarkupContainer userAdministrationContainer = MenuContainerFactory.INSTANCE.getUserAdministrationContainer();
		Link<Serializable> userAdministration = NavigationLinkFactory.INSTANCE.getUserAdministrationLink();
		add(userAdministrationContainer.add(userAdministration));
		getMenuMap().put(NavigationStatus.USER_ADMINISTRATION, new Component[] { userAdministrationContainer, userAdministration });

		setSelectedLink();
	}
}
